* doc-view.el (doc-view-set-doc-type): New function refactored
authorTassilo Horn <tassilo@member.fsf.org>
Thu, 30 Dec 2010 18:08:18 +0000 (19:08 +0100)
committerTassilo Horn <tassilo@member.fsf.org>
Thu, 30 Dec 2010 18:08:18 +0000 (19:08 +0100)
commit6f5ebe59cc6a3e4af1d9c95132c14528fd2e2401
tree839a78ebc77d38d868b4199b10c8a5a602d28d70
parentf2e2bdf28c8e448aa8a6d6a57fbdccee962f6700
* doc-view.el (doc-view-set-doc-type): New function refactored
from doc-view-mode.
(doc-view-fallback-mode): New function.
(doc-view-mode): Use it.
(doc-view-mode-maybe): New function that checks if doc-view-mode
can be used and falls back to the next best mode otherwise.

* files.el (auto-mode-alist): Use doc-view-mode-maybe for PDF,
DVI, OpenDocument, and MS Office files.
lisp/ChangeLog
lisp/doc-view.el
lisp/files.el